<extend name="Layout/main" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">账户管理</block>
<block name="controller">管理员管理</block>
<block name="action">附加权限</block>
<block name="desc"></block>
<block name="content">
<notempty name="data">
<div class="row">
	<form class="form-horizontal" action="{:U('level')}" method="post" rel-action="form">
	<div class="col-md-3">
		<div class="box box-danger">
			<div class="box-header with-border">
				<h3 class="box-title">附加权限</h3>
			</div>
			<div class="box-body table-responsive">
				<table class="table table-striped table-condensed table-bordered">
					<volist name="level" id="item">
						<tr>
							<td><strong>{$item.level_name}</strong></td>
						</tr>
						<volist name="item.level" id="items">
						<tr>
							<td>
							<label class="font-light">
							<if condition="$items.level_default == 1">
								<if condition="$items.disabled == 1">
									<input name="raw[{$items.level_id}]" value="{$items.level_data}" type="checkbox" checked disabled>{$items.level_name}
								<else />
									<input name="raw[{$items.level_id}]" value="{$items.level_data}" type="checkbox" checked>{$items.level_name}
								</if>
							<else />
								<input name="raw[{$items.level_id}]" value="{$items.level_data}" type="checkbox">{$items.level_name}
							</if>
							</label>
							</td>
						</tr>
						</volist>
					</volist>
				</table>
			</div>	
		</div>
	</div>
	<div class="col-md-9">
		<div class="box box-danger">
			<div class="box-header with-border">
				<h3 class="box-title">账户信息</h3>
			</div>
			<div class="box-body table-responsive">
				<table class="table table-bordered table-striped">
					<tr>
						<td class="text-right col-sm-2">用户昵称</td>
						<td>{$data.manager_usernick}</td>
					</tr>
					<tr>
						<td class="text-right">登录名</td>
						<td>{$data.manager_username}</td>
					</tr>
					<tr>
						<td class="text-right">所属分组</td>
						<td>{$data.manager_role_name}</td>
					</tr>
					<tr>
						<td class="text-right">注册地址</td>
						<td>{$data.register_ip}</td>
					</tr>
					<tr>
						<td class="text-right">注册时间</td>
						<td>{$data.register_time}</td>
					</tr>
					<tr>
						<td class="text-right">上次登录地址</td>
						<td>{$data.last_ip}</td>
					</tr>
					<tr>
						<td class="text-right">上次登录时间</td>
						<td>{$data.last_time}</td>
					</tr>
					<tr>
						<td class="text-right">账户状态</td>
						<td>{$data.state}</td>
					</tr>
				</table>
			</div>
			<input type="hidden" name="id" value="{$data.manager_id}">
			<div class="box-footer">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">保存</button>
					<button type="reset" class="btn btn-default">重置</button>
					<button type="button" class="btn btn-default" rel-action="cancel">取消</button>
				</div>
			</div>
		</div>
	</div>
	</form>
</div>
</notempty>
<empty name="data">
<div class="box box-danger">
	<div class="box-header with-border">
		<h3 class="box-title">附加权限</h3>
	</div>
	<div class="box-body">
		<div class="alert alert-error alert-dismissible">
			<h4><i class="icon fa fa-warning"></i>暂无记录</h4>
			参数有误
		</div>
	</div>
</div>
</empty>
</block>